#ifndef WORKLISTPLUGIN_GLOBAL_H
#define WORKLISTPLUGIN_GLOBAL_H

#include <QtCore/qglobal.h>
#include <QDateTime>

#if defined(WORKLISTPLUGIN_LIBRARY)
#  define WORKLISTPLUGINSHARED_EXPORT Q_DECL_EXPORT
#else
#  define WORKLISTPLUGINSHARED_EXPORT Q_DECL_IMPORT
#endif

#ifndef GLOBAL_CPP
#define GLOBAL_EXTERN extern
#else
#define GLOBAL_EXTERN
#endif

#define TIME_DICOM_FORMAT "hhmmss"
#define TIME_DICOM_FORMAT_MS "hhmmss.zzz"

GLOBAL_EXTERN QString sex2trSex(const QString &sex);
GLOBAL_EXTERN QString trSex2Sex(const QString &trsex);
GLOBAL_EXTERN QString age2trAge(const QString &age);
GLOBAL_EXTERN QTime formatDicomTime(const QString &timeStr);

typedef struct WorklistItem {
    QString accNumber;
    QString patientId;
    QString patientName;
    QString patientSex;
    QDate patientBirth;
    QString patientAge;
    QString admissionId;
    QString medicalAlert;
    QString reqPhysician;
    QString reqProcId;
    QString reqProcDesc;
    QString reqPriority;
    QString schModality;
    QString schStationName;
    QString schStationAE;
    QString schPhysician;
    QDateTime schDateTime;
    QString schProcStepId;
    QString schProcStepDesc;
    QString studyUid;
    QString studyDesc;
} WorklistItem;


#endif // WORKLISTPLUGIN_GLOBAL_H
